<?php

class SenhaTemporaria extends CFormModel {

    public $email;
    public $verifyCode;

    public function rules() {
        return array(
            array('email, verifyCode', 'required'),
            // verifyCode needs to be entered correctly
            array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements()),
        );
    }

    public function attributeLabels() {
        return array(
            'email' => 'E-mail',
            'verifyCode' => 'Código de Verificação',
        );
    }

}

?>
